package com.kj.platformlogistics.my.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.kj.platformlogistics.R;
import com.kj.platformlogistics.base.BaseActivity;
import com.kj.platformlogistics.common.UserData;

public class ActivityIdentityInfo extends BaseActivity implements View.OnClickListener {
    private ImageView ivIdCardFront,ivIdCardBack;

    public static void actionStart(Context context) {
        Intent intent = new Intent(context, ActivityIdentityInfo.class);
        context.startActivity(intent);
    }

    @Override
    public void onClick(View v) {

    }

    @Override
    protected void init(Bundle savedInstanceState) {
        setAndroidNativeLightStatusBar(true);
    }

    @Override
    protected int setLayoutResourceID() {
        return R.layout.activity_identity_info;
    }

    @Override
    protected void initView() {
        setTitleText("身份认证");
        ivIdCardFront=findViewById(R.id.ivIdCardFront);
        ivIdCardBack=findViewById(R.id.ivIdCardBack);

        Glide.with(ActivityIdentityInfo.this).
                load(UserData.create(ActivityIdentityInfo.this).get(UserData.driverIdentificationFront))
                .placeholder(R.mipmap.icon_idcard_front)
                .into(ivIdCardFront);

        Glide.with(ActivityIdentityInfo.this).
                load(UserData.create(ActivityIdentityInfo.this).get(UserData.driverIdentificationContrary))
                .placeholder(R.mipmap.icon_idcard_bg)
                .into(ivIdCardBack);
    }

    @Override
    protected void initData() {

    }


    @Override
    protected int getTitleBarType() {
        return 0;
    }
}
